package com.zl.feign.hystrix;

import com.zl.domain.Order;
import com.zl.feign.UserOrderFeign;
import org.springframework.stereotype.Component;

/**
 * @author zl
 * @date 2023/3/21
 * @apiNote
 */
@Component
public class UserOrderFeignHystrix implements UserOrderFeign {
    /**
     * 一般远程调用的熔断可以直接返回null值
     * @param userId
     * @return
     */
    @Override
    public Order getOrderByUserId(Integer userId) {
        return null;
    }
}
